package com.jd.ty.web.filter;

import com.jd.ty.dao.constant.QueryConstants;
import com.jd.ty.dao.constant.QueryConstants.CustomerCompany;
import com.jd.ty.dao.constant.QueryConstants.Employee;
import com.jd.ty.util.CharacterEncodingUtil;
import com.jd.ty.util.Filter;

public class EmployeeFilter extends Filter {

	private Item employeeName     = new Item(Employee.EMPLOYEE_NAME, null, QueryConstants.LIKE);
	private Item deparment  = new Item(Employee.DEPARMENT, new Long(0));
	private Item phoneNumber           = new Item(CustomerCompany.PHONE_NUMBER, null, QueryConstants.LIKE);
	
	public String getEmployeeName() {
		return (String) employeeName.getValue();
	}
	public void setEmployeeName(String value) {
		employeeName.setValue(CharacterEncodingUtil.iso2utf8(value));
	}
	
	public String getDeparment() {
		return (String) deparment.getValue();
	}
	public void setDeparment(String value) {
		this.deparment.setValue(CharacterEncodingUtil.iso2utf8(value));
	}

	public String getPhoneNumber() {
		return (String) phoneNumber.getValue();
	}
	public void setPhoneNumber(String value) {
		phoneNumber.setValue(CharacterEncodingUtil.iso2utf8(value));
	}


}
